package com.river.feign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by jl on 2019/1/12 0012
 */
@RestController
public class HiController {
    @Autowired
    private ServiceHiFacade serviceHiFacade;

    @GetMapping("/hi")
    public String sayHi(@RequestParam("name") String name) {
        return serviceHiFacade.sayHi(name);
    }
}
